module timer_demo(
	input Clk_50M,
	input Rst_n,
	output[15:0] Led_state
);

	wire Clk_51200Hz;
	wire Clk_1Hz;
	wire[5:0] Minute;
	wire[5:0] Second;
	//wire[23:0] Led_state;
	wire[7:0] Led_out;

	frequency_51200Hz f_51200Hz(
		.clk_50M(Clk_50M),
		.rst_n(Rst_n),
		.clk_51200Hz(Clk_51200Hz)
	);
	
	frequency_1Hz f_1Hz(
		.clk_51200Hz(Clk_51200Hz),
		.rst_n(Rst_n),
		.clk_1Hz(Clk_1Hz)
	);
	
	timer tim0(
		.clk_1Hz(Clk_1Hz),
		.rst_n(Rst_n),
		.minute(Minute),
		.second(Second)
	);
	
	timer_change change0(
		.clk_1Hz(Clk_1Hz),
		.rst_n(Rst_n),
		.minute(Minute),
		.second(Second),
		.led_temp(Led_state)
	);
	
	led_display display0(
		.clk_51200Hz(Clk_51200Hz),
		.rst_n(Rst_n),
		.led_state(Led_state),
		.led(Led_out)
	);

endmodule
